#pragma once

extern HANDLE hExitNewLevelStockManagerEvent;
class Cx_BaseStockPolicy;
class Cx_NewLevelStockManager
{
public:
	Cx_NewLevelStockManager(void);
	~Cx_NewLevelStockManager(void);

	static DWORD WINAPI AfxNewLevelOrderStockThread(LPVOID lParam);
public:
	BOOL Run();

	void ExitAllNewLevelStockThread();

	void StartPolicyThread(const mapStockPolicy &mapInPut);

	void GetNewLevelStockParam(mapStockPolicy &mapOutPut);

	BOOL ResetNewLevelStock();
	bool TimeToInit();
	bool InTradingTime();
};
